<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content=""/>
    <meta name="author" content=""/>
    <link rel="icon" href="./img/asset-favicon.ico"/>
    <title>社交-登录注册</title>
    <!-- 页面 css js -->
    <!-- <script type="text/javascript" src="../../plugins/sui/sui.min.js" charset="UTF-8"></script> -->

    <link rel="stylesheet" type="text/css" href="./plugins/normalize-css/normalize.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/yui/cssgrids-min.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/sui/sui.min.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/sui/sui-append.min.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/font-awesome/css/font-awesome.min.css"/>
    <link rel="stylesheet" type="text/css" href="./css/widget-base.css"/>
    <link rel="stylesheet" type="text/css" href="./css/widget-head-foot.css"/>
    <link rel="stylesheet" type="text/css" href="./css/page-sj-person-loginsign.css"/>
    <script type="text/javascript" src="js/vue-2.5.16.js"></script>
    <script type="text/javascript" src="js/axios-0.18.0.min.js"></script>


</head>
<body>
<!--头部导航-->
<header class="head-login">
    <div class="wrapper">
        <div class="sui-navbar">
            <div class="navbar-inner">
                <a href="./index-login.html" class="sui-brand"> <img src="./img/asset-logo-black.png" alt="社交"/> </a>
                <span class="login-text">| 登录注册</span>
            </div>
        </div>
    </div>
</header>
<div class="wrapper loginsign">
    <div class="item signup">
        <div class="form" id="app">
            <h3 class="loginsign-title">注册新账号</h3>
            <form class="sui-form" @submit.prevent="on_submit">
                <div class="control-group">
                    <label for="inputname" class="control-label">名字</label>
                    <div class="controls">
                        <input type="text"  placeholder="真实姓名或常用昵称" class="input-xlarge"
                               v-model="username" @blur="check_username" name="user_name" id="user_name">
                        <div v-show="error_name" class="error_tip">{{ error_name_message }}</div>

                    </div>
                </div>
                <div class="different">
                    <div class="radio-content">
                        <div id="a1" class="phone">
                            <div class="control-group number">
                                <input type="text" placeholder="仅支持大陆手机号" class="input-xlarge" v-model="mobile"  name="phone" id="phone"/>
                                <div v-show="error_phone" class="error_tip">{{ error_phone_message }}</div>

                            </div>
                            <div class="control-group code">
                                <div class="input-append">
                                    <input id="appendedInputButton" type="text" placeholder="短信验证"
                                           class="span2 input-large msg-input"  v-model="sms_code" @blur="check_sms_code" name="msg_code" id="msg_code"/>

                                    <button type="button" class="sui-btn msg-btn" @click ='send_sms_code'>获取验证码</button>
                                    <div v-show="error_sms_code" class="error_tip">{{ error_sms_code_message }}</div>


                                </div>
                            </div>
                            <div class="control-group">
                                <label for="inputpassword" class="control-label">密码</label>
                                <div class="controls">
                                    <input type="text"  placeholder="请输入6-16位密码"
                                           class="input-xlarge" v-model="password" @blur="check_pwd" name="pwd" id="pwd"/>
                                    <div v-show="error_password" class="error_tip">密码最少8位，最长20位</div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="control-group btn-signup">
                    <label class="control-label"></label>
                    <div class="controls">
                        <label> <input type="checkbox"  v-model="allow" @change="check_allow" name="allow" id="allow"/><span class="type-text"
                                                              style="font-size:12px;">同意协议并接受《服务条款》</span> </label>
                        <button type="submit" class="sui-btn btn-danger btn-yes">注 册</button>
                    </div>
                </div>
            </form>

        </div>
    </div>
    <div class="item">
        <div class="form">
            <h3 class="loginsign-title">用户登录</h3>
            <form class="sui-form login-form" id="apps" @submit.prevent="on_submit">
                <div class="control-group">
                    <label for="inputname" class="control-label">手机号：</label>
                    <div class="controls">
                        <input type="text" id="inputname" placeholder="11位手机号" v-model="username" @blur="check_username" name=""  class="input-xlarge" data-rules="required"/>
                        <div v-show="error_username" class="user_error" v-cloak>请填写用户名或手机号</div>
                    </div>
                </div>
                <div class="control-group">
                    <label for="inputpassword" class="control-label">密码：</label>
                    <div class="controls">
                        <input type="text" id="inputpassword" placeholder="输入登录密码" class="input-xlarge" v-model="password" @blur="check_pwd" name="pwd"/>
                        <div v-show="error_pwd" class="pwd_error" v-cloak>{{ error_pwd_message }}</div>
                    </div>
                </div>
                <div class="controls">
                    <div class="more_input clearfix">
                                <input type="checkbox" v-model="remember"  name="remember-me"/><span class="type-text" style="font-size:12px;">记住登录状态</span>
                                <!--<label>记住登录</label>-->
                                <!--<a href="/find_password.html">忘记密码</a>-->
                    </div>
                    <input type="submit" name="" value="登 录" class="sui-btn btn-danger btn-yes" @click="submit">
                    <!--<label> <input type="checkbox" name="remember-me"/><span class="type-text" style="font-size:12px;">记住登录状态</span>-->
                    <!--</label>-->
                    <!--<button type="submit" class="sui-btn btn-danger btn-yes" name="" value="登 录">登 录</button>-->
                </div>
                <div class="other-methods">
                </div>
            </form>
        </div>
    </div>
</div>
<div class="footer">
    <div class="wrapper">
        <div class="footer-bottom">
            <div class="link">
                <dl>
                    <dt>
                        网站相关
                    </dt>
                    <dd>
                        关于我们
                    </dd>
                    <dd>
                        服务条款
                    </dd>
                    <dd>
                        帮助中心
                    </dd>
                    <dd>
                        编辑器语法
                    </dd>
                </dl>
                <dl>
                    <dt>
                        常用链接
                    </dt>
                    <dd>
                        传智播客
                    </dd>
                    <dd>
                        传智论坛
                    </dd>
                </dl>
                <dl>
                    <dt>
                        联系我们
                    </dt>
                    <dd>
                        联系我们
                    </dd>
                    <dd>
                        加入我们
                    </dd>
                    <dd>
                        建议反馈
                    </dd>
                </dl>
                <dl>
                    <dt>
                        关注我们
                    </dt>
                    <dd>
                        微博
                    </dd>
                    <dd>
                        twitter
                    </dd>
                </dl>
                <div class="xuke">
                    <h3>内容许可</h3>
                    <p>除特别说明外，用户内容均采用知识共享署名-非商业性使用-禁止演绎4.0 国际许可协议 (CC BY-NC-ND 4.0) 进行许可</p>
                    <p>本站由 传智研究院 提供更新服务</p>
                </div>
            </div>
            <p class="Copyright">Copyright &copy; 2017 传智问答社区 当前版本 0.0.1</p>
        </div>
    </div>

</div>
</body>
</html>
<script type="text/javascript" src="js/base.js"></script>
<script type="text/javascript" src="js/register.js"></script>
<script type="text/javascript" src="js/login.js"></script>
